package com.ruoyi.system.service;

import com.ruoyi.system.domain.SysStudentInteraction;
import java.util.Date;
import java.util.List;
import java.util.Map;
public interface SysStudentInteractionService {
    // 获取当前用户的互动记录
    List<SysStudentInteraction> getInteractionsByUserId(Long userId);

    // 按时间范围查询
    List<SysStudentInteraction> getInteractionsByUserIdAndTimeRange(Long userId, Date startTime, Date endTime);

    // 按课程查询
    List<SysStudentInteraction> getInteractionsByUserIdAndCourseId(Long userId, Long courseId);

    // 统计总互动次数
    Long countTotalInteractions(Long userId);

    // 按类型统计
    List<Map<String, Object>> countInteractionsByType(Long userId);

    // 新增互动记录
    boolean addInteraction(SysStudentInteraction interaction);
}
